<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>${systemName}</title>
    <meta name="description" content="${systemName}">
    <meta name="author" content="stylefeng">

    <link rel="stylesheet" href="${ctxPath}/assets/common/layui/css/layui.css"/>
    <link href="${ctxPath}/assets/expand/plugins/ztree/zTreeStyle.css" rel="stylesheet" type="text/css"/>
    <style>
        .layui-elem-quote{
            background-color: #f7fb0b52;
            font-size: 17px;
        }
        audio{
            /*display: none;*/
        }
    </style>
</head>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    @if(list!=null && list.~size>0){
                    <blockquote class="layui-elem-quote layui-quote-nm">您<span style="color: red;">${month}月</span>有以下任务还未完成，请及时填报 <a href="/deal" class="layui-btn layui-btn-warm layui-btn-sm">点我去填报</a></blockquote>
                    <table class="layui-table" id="levelTable" lay-filter="levelTable">
                        <thead>
                        <tr>
                            <th>阶段</th>
                            <th>工作内容</th>
                            <th>资料名称</th>
                            <th>资料要求</th>
                            <th>基础分</th>
                            <th>评判分</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        @for(item in list){
                        <tr>
                            @if(item.level_count!=null){
                            <td rowspan="${item.level_count}">${item.level_num}、${item.level_name}</td>
                            @}
                            @if(item.content_count!=null){
                            <td rowspan="${item.content_count}">${item.content_num}、${item.content}</td>
                            @}
                            <td>${item.data_num}${item.data_name}</td>
                            <td>${item.data_type}</td>
                            <td>${item.base_score}</td>
                            <td>${item.data_score}</td>
                            <td align="center"><a class="layui-btn layui-btn-warm layui-btn-sm uploadFile" id="${item.data_id}">填报</a></td>
                        </tr>
                        @}
                        </tbody>
                    </table>
                    @}else{
                    <blockquote class="layui-elem-quote layui-quote-nm">恭喜您已完成<span style="color: red;">${month}月</span>所有任务   <span class="layui-icon">&#xe650;</span></blockquote>
                    @}
                </div>
            </div>
        </div>
    </div>
</div>
@/* 加入contextPath属性和session超时的配置 */
<script type="text/javascript">
    var Feng = {
        ctxPath: "",
        addCtx: function (ctx) {
            if (this.ctxPath === "") {
                this.ctxPath = ctx;
            }
        }
    };
    Feng.addCtx("${ctxPath}");
</script>
<script type="text/javascript" src="${ctxPath}/assets/common/layui/layui.js"></script>
<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js"></script>

<!--其他插件js-->
<script type="text/javascript" src="${ctxPath}/assets/expand/plugins/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${ctxPath}/assets/expand/plugins/ztree/jquery.ztree.all.min.js"></script>

<script>
    layui.use(['ax','admin','form'], function () {
        var $ = layui.$;
        var $ax = layui.ax;
        var admin = layui.admin;
        var form = layui.form;

        $("#btnSearch").click(function () {
            var year = $("#year").val();
            window.location.href = Feng.ctxPath + "/deal?year="+year;

        })

        $(".uploadFile").click(function () {
            var dataId = $(this).attr("id");
            admin.putTempData('formOk', false);
            top.layui.admin.open({
                type: 2,
                title: '上传资料',
                content: Feng.ctxPath + '/deal/toUpload?dataId='+dataId,
                end: function () {
                    admin.getTempData('formOk') && location.reload();
                }
            });
        })

    })
</script>


</body>

</html>
